package com.yima.baseproj.module.app.fankui;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yima.baseproj.module.app.fankui.model.AppFankuiAddParamModel;
import com.yima.baseproj.module.app.fankui.model.AppFankuiEditParamModel;
import com.yima.baseproj.module.app.fankui.model.AppFankuiSearchModel;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class AppFankuiService extends ServiceImpl<AppFankuiMapper, AppFankuiEntity> {

    public Page<Map> findByPage(Page page, AppFankuiSearchModel searchVo) {
        return baseMapper.findBySearchVo(page,searchVo);
    }

    public List<Map> findByList(AppFankuiSearchModel searchVo) {
        return baseMapper.findBySearchVo(searchVo);
    }

    /**
     * 添加 - 事务
     * @param paramModel
     */
    @Transactional(rollbackFor = Exception.class)
    public void add(AppFankuiAddParamModel paramModel) {

    }

    @Transactional(rollbackFor = Exception.class)
    public void edit(AppFankuiEditParamModel paramModel) {

    }

    @Transactional(rollbackFor = Exception.class)
    public void del(String id) {

    }
}
